<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../jquery.min.js"></script>
    <script>
      $(function () {
        // 隐藏的属性（dom对象身上）能拿到
        const checked = $('[name=false]:first-of-type').prop('checked')
        console.log(checked, 'checked')

        // 自带的属性能拿到
        const name = $('[name=false]:first-of-type').prop('name')
        console.log(name, 'name')

        // 自定义的属性拿不到
        const abc = $('[name=false]:first-of-type').prop('abc')
        console.log(abc, 'abc')
      })
    </script>
  </head>
  <body>
    <div id="app">
      性别：
      <label><input type="radio" name="false" abc="xxx" /> 男</label>
      <label><input type="radio" name="false" /> 女</label>
    </div>
  </body>
</html>
